import React, { memo } from 'react'

function Goods(props) {
  console.log('goods run');
  return (
    <div style={{color: 'white'}}>
      <ul>
        {props.goods.map(item => {
          return <li key={item.id}>{item.title}</li>
        })}
      </ul>
    </div>
  )
}

export default memo(Goods);
